package cn.tedu.ivos.geofence.pojo.vo;

import cn.tedu.ivos.vehicle.pojo.vo.VehicleVO;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
public class GeofenceVO {
    @ApiModelProperty(value = "电子围栏编号")
    public Long id;
    @ApiModelProperty(value = "电子围栏名称")
    public String name;
    @ApiModelProperty(value = "电子围栏状态")
    public String status;
    @ApiModelProperty(value = "电子围栏位置数据")
    public String position;
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    public Date createTime;
    /*下面的属性在分配车辆时使用，对用围栏下的车辆数据*/
    @ApiModelProperty(value = "围栏绑定车辆总数")
    public Integer totalNum;
    @ApiModelProperty(value = "围栏可用车辆数")
    public Integer availableNum;
    @ApiModelProperty(value = "围栏绑定车辆列表")
    public List<VehicleVO> vehicleVOList;
}
